<?php
namespace app;

use think\Model;
use think\Db;

class BaseModel extends Model {

	 /**
	 * category
	 */
	public function categorysByPid($pid){
		//得到列表
		$categoryList = Db::name('t_category')->where("pid",$pid)->order('orderid', 'desc')->select();
		return $categoryList;
	}
}